package com.feicheng.persistence.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author cailongyang
 * @since 2021-12-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Permission implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "permission_id", type = IdType.AUTO)
    private Integer permissionId;

    private String name;

    private String path;

    private Boolean statu;

    private Integer pId;

    private Integer cu;

    private LocalDateTime ct;

    private Integer uu;

    private LocalDateTime ut;

    private String type;

    @TableField(exist=false)
    public List<Permission> permissions;
}
